<%-- 
    Document   : header
    Created on : Aug 28, 2011, 8:07:38 PM
    Author     : HIEP
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<div id="header">
    <div class="container content">
        <h1><strong>Home</strong></h1>
        <c:if test="${user != null}">
            <div class="loginInfos"> Welcome <strong>${user.fullname}</strong>
                <html:link action="/UserAction.do?method=edit&email=${user.email}">Edit your settings</html:link>,
                or <html:link action="/LoginAction.do?method=logout">Logout</html:link>
                </div>
        </c:if>
    </div>
</div>
</div>
